package com.wl.dzt.product.controller;

import com.wl.dzt.product.feign.ProductFeign;
import com.wl.dzt.sys.response.Result;
import com.wl.dzt.sys.util.json.Json;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wl_code@163.com
 * @Date 2018/5/25/025
 * @Version 1.0
 * @Description 描述
 */
@RestController
@RequestMapping("test-feign")
public class TestController {

    @Autowired
    private ProductFeign productFeign;

    @RequestMapping("testProductApi")
    public void testProductApi(){
        System.out.println(productFeign);
        Result result = productFeign.testQuery();
        System.out.println(Json.parse(result));
        System.out.println(result);
    }

}
